//
//  MineStrategyCell.m
//  GiftNote
//
//  Created by lanou on 15/8/20.
//  Copyright (c) 2015年 GN. All rights reserved.
//

#import "MineStrategyCell.h"
#import "HomeHeader.h"
#import "UIImageView+WebCache.h"

@implementation MineStrategyCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        _myImageView = [[UIImageView alloc]initWithFrame:CGRectMake(10, 5, 72, 30)];
        [self.contentView addSubview:_myImageView];
        
        _titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(_myImageView.frame) + 5, 15, kHomeWidth - 92, 20)];
        _titleLabel.font = [UIFont systemFontOfSize:14];
        [self.contentView addSubview:_titleLabel];
        
    }
    return self;
}

- (void)setDetailModel:(HomeDetailModel *)detailModel
{
    _detailModel = detailModel;
    [_myImageView sd_setImageWithURL:[NSURL URLWithString:_detailModel.cover_image_url] placeholderImage:nil];
    _titleLabel.text = _detailModel.title;
}

@end
